<?php

/**
 * Application Models
 *
 * @package Application_Model
 * @subpackage Model
 * @author <YOUR NAME HERE>
 * @copyright ZF model generator
 * @license http://framework.zend.com/license/new-bsd     New BSD License
 */

/**
 * Abstract class for models
 */
require_once 'ModelAbstract.php';

/**
 * 
 *
 * @package Application_Model
 * @subpackage Model
 * @author <YOUR NAME HERE>
 */
class Application_Model_PilotListclients extends Application_Model_ModelAbstract
{

    /**
     * Database var type int(11)
     *
     * @var int
     */
    protected $_IdPILOTLISTCLIENTS;

    /**
     * Database var type text
     *
     * @var text
     */
    protected $_URLWEBSERVICE;

    /**
     * Database var type text
     *
     * @var text
     */
    protected $_WSDLTEXT;

    /**
     * Database var type varchar(45)
     *
     * @var string
     */
    protected $_LOGIN;

    /**
     * Database var type text
     *
     * @var text
     */
    protected $_PASSWORD;

    /**
     * Database var type varchar(45)
     *
     * @var string
     */
    protected $_PREFIX;

    /**
     * Database var type text
     *
     * @var text
     */
    protected $_NOMCLIENT;

    /**
     * Database var type text
     *
     * @var text
     */
    protected $_DESCRIPTION;


    /**
     * Database var type text
     *
     * @var text
     */
    protected $_URLPLATEFORME;
    
    
    /**
     * Dependent relation fk_PILOT_PROJETANALYSE_PILOT_LISTCLIENTS1
     * Type: One-to-Many relationship
     *
     * @var Application_Model_PilotProjetanalyse
     */
    protected $_PilotProjetanalyse;

    /**
     * Sets up column and relationship lists
     */
    public function __construct()
    {
        parent::init();
        $this->setColumnsList(array(
            'idPILOT_LISTCLIENTS'=>'IdPILOTLISTCLIENTS',
            'URLWEBSERVICE'=>'URLWEBSERVICE',
            'WSDLTEXT'=>'WSDLTEXT',
            'LOGIN'=>'LOGIN',
            'PASSWORD'=>'PASSWORD',
            'PREFIX'=>'PREFIX',
            'NOMCLIENT'=>'NOMCLIENT',
            'DESCRIPTION'=>'DESCRIPTION',
        	'URLPLATEFORME'=>'URLPLATEFORME',
        		
        ));

        $this->setParentList(array(
        ));

        $this->setDependentList(array(
            'FkPILOTPROJETANALYSEPILOTLISTCLIENTS1' => array(
                    'property' => 'PilotProjetanalyse',
                    'table_name' => 'PilotProjetanalyse',
                ),
        ));
    }

    /**
     * Sets column idPILOT_LISTCLIENTS
     *
     * @param int $data
     * @return Application_Model_PilotListclients
     */
    public function setIdPILOTLISTCLIENTS($data)
    {
        $this->_IdPILOTLISTCLIENTS = $data;
        return $this;
    }

    /**
     * Gets column idPILOT_LISTCLIENTS
     *
     * @return int
     */
    public function getIdPILOTLISTCLIENTS()
    {
        return $this->_IdPILOTLISTCLIENTS;
    }

    /**
     * Sets column URLWEBSERVICE
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setURLWEBSERVICE($data)
    {
        $this->_URLWEBSERVICE = $data;
        return $this;
    }

    /**
     * Gets column URLWEBSERVICE
     *
     * @return text
     */
    public function getURLWEBSERVICE()
    {
        return $this->_URLWEBSERVICE;
    }

    /**
     * Sets column WSDLTEXT
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setWSDLTEXT($data)
    {
        $this->_WSDLTEXT = $data;
        return $this;
    }

    /**
     * Gets column WSDLTEXT
     *
     * @return text
     */
    public function getWSDLTEXT()
    {
        return $this->_WSDLTEXT;
    }

    /**
     * Sets column LOGIN
     *
     * @param string $data
     * @return Application_Model_PilotListclients
     */
    public function setLOGIN($data)
    {
        $this->_LOGIN = $data;
        return $this;
    }

    /**
     * Gets column LOGIN
     *
     * @return string
     */
    public function getLOGIN()
    {
        return $this->_LOGIN;
    }

    /**
     * Sets column PASSWORD
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setPASSWORD($data)
    {
        $this->_PASSWORD = $data;
        return $this;
    }

    /**
     * Gets column PASSWORD
     *
     * @return text
     */
    public function getPASSWORD()
    {
        return $this->_PASSWORD;
    }

    /**
     * Sets column PREFIX
     *
     * @param string $data
     * @return Application_Model_PilotListclients
     */
    public function setPREFIX($data)
    {
        $this->_PREFIX = $data;
        return $this;
    }

    /**
     * Gets column PREFIX
     *
     * @return string
     */
    public function getPREFIX()
    {
        return $this->_PREFIX;
    }

    /**
     * Sets column NOMCLIENT
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setNOMCLIENT($data)
    {
        $this->_NOMCLIENT = $data;
        return $this;
    }

    /**
     * Gets column NOMCLIENT
     *
     * @return text
     */
    public function getNOMCLIENT()
    {
        return $this->_NOMCLIENT;
    }

    /**
     * Sets column DESCRIPTION
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setDESCRIPTION($data)
    {
        $this->_DESCRIPTION = $data;
        return $this;
    }

  
    
    
    /**
     * Gets column DESCRIPTION
     *
     * @return text
     */
    public function getDESCRIPTION()
    {
        return $this->_DESCRIPTION;
    }
    
    /**
     * Sets column URLPLATEFORME
     *
     * @param text $data
     * @return Application_Model_PilotListclients
     */
    public function setURLPLATEFORME($data)
    {
    	$this->_URLPLATEFORME = $data;
    	return $this;
    }
    
    
    /**
     * Gets column URLPLATEFORME
     *
     * @return text
     */
    public function getURLPLATEFORME()
    {
    	return $this->_URLPLATEFORME;
    }

    /**
     * Sets dependent relations fk_PILOT_PROJETANALYSE_PILOT_LISTCLIENTS1
     *
     * @param array $data An array of Application_Model_PilotProjetanalyse
     * @return Application_Model_PilotListclients
     */
    public function setPilotProjetanalyse(array $data)
    {
        $this->_PilotProjetanalyse = array();

        foreach ($data as $object) {
            $this->addPilotProjetanalyse($object);
        }

        return $this;
    }

    /**
     * Sets dependent relations fk_PILOT_PROJETANALYSE_PILOT_LISTCLIENTS1
     *
     * @param Application_Model_PilotProjetanalyse $data
     * @return Application_Model_PilotListclients
     */
    public function addPilotProjetanalyse(Application_Model_PilotProjetanalyse $data)
    {
        $this->_PilotProjetanalyse[] = $data;
        return $this;
    }

    /**
     * Gets dependent fk_PILOT_PROJETANALYSE_PILOT_LISTCLIENTS1
     *
     * @param boolean $load Load the object if it is not already
     * @return array The array of Application_Model_PilotProjetanalyse
     */
    public function getPilotProjetanalyse($load = true)
    {
        if ($this->_PilotProjetanalyse === null && $load) {
            $this->getMapper()->loadRelated('FkPILOTPROJETANALYSEPILOTLISTCLIENTS1', $this);
        }

        return $this->_PilotProjetanalyse;
    }

    /**
     * Returns the mapper class for this model
     *
     * @return Application_Model_Mapper_PilotListclients
     */
    public function getMapper()
    {
        if ($this->_mapper === null) {
            $this->setMapper(new Application_Model_Mapper_PilotListclients());
        }

        return $this->_mapper;
    }

    /**
     * Deletes current row by deleting the row that matches the primary key
     *
	 * @see Application_Model_Mapper_PilotListclients::delete
     * @return int|boolean Number of rows deleted or boolean if doing soft delete
     */
    public function deleteRowByPrimaryKey()
    {
        if ($this->getIdPILOTLISTCLIENTS() === null) {
            throw new Exception('Primary Key does not contain a value');
        }

        return $this->getMapper()
                    ->getDbTable()
                    ->delete('idPILOT_LISTCLIENTS = ' .
                             $this->getMapper()
                                  ->getDbTable()
                                  ->getAdapter()
                                  ->quote($this->getIdPILOTLISTCLIENTS()));
    }
}
